package com.weavernorth.humanresource.formal.timer;

import com.weavernorth.humanresource.formal.service.FormalUserService;
import com.weavernorth.humanresource.formal.service.FormalUserServiceImpl;
import com.weavernorth.util.Logger4jUtil;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.log4j.Logger;
import weaver.interfaces.schedule.BaseCronJob;

/**
 * @program: ecology_erdos
 * @description: 定时任务转正前一个月触发转正流程
 * @author: zm
 * @create: 2019-12-16 16:49
 **/


public class FormalUserTime extends BaseCronJob {
//    private static Log newlog = LogFactory.getLog(FormalUserTime.class);
    private Logger newlog = Logger4jUtil.getLoggerByName("/Timmer/humanresource/formal/formaluser/");
    @Override
    public void execute() {
        newlog.info("定时触发转正流程");
        FormalUserService formalUserService=new FormalUserServiceImpl();
        //定时创建转正流程
     formalUserService.createFormal();

    }


}
